package com.wh.testDanLi;

/**
 * 饿汉式
 */
public class DanLiDemo1 {
    //可能会造成空间浪费
    private byte[] data=new byte[1024*1024];
    private byte[] data1=new byte[1024*1024];

    private final static DanLiDemo1 danli = new DanLiDemo1();

    private DanLiDemo1() {

    }

    public static DanLiDemo1 getInstance() {
        return danli;
    }
}
